<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<title>无标题文档</title>
</head>
<?php
date_default_timezone_set('Asia/Shanghai');
function showResult($v){
	if($v==1){
		echo'<font color=green><b>√</b></font>&nbsp;<font color=gray>支持</font>';
	}else{
		echo'<font color=red><b>×</b></font>&nbsp;<font color=gray>不支持</font>';
	}
}
?>
<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="4" scope="col" style="text-align:left">服务器信息</th>
  </tr>
  <tr>
    <td width="188">服务器名：</td>
    <td width="273"><?php echo $_SERVER['SERVER_NAME'];?></td>
    <td width="193">mysql数据库：</td>
    <td width="126"><?php echo showResult(function_exists("mysql_close"));?></td>
  </tr>
  <tr>
    <td width="188">服务器IP：</td>
    <td><?php echo @$_SERVER['LOCAL_ADDR'];?></td>
    <td width="193">odbc数据库：</td>
    <td width="126"><?php echo showResult(function_exists("odbc_close"));?></td>
  </tr>
  <tr>
    <td width="188">服务器端口：</td>
    <td><?php echo $_SERVER['SERVER_PORT'];?></td>
    <td width="193">SQL Server数据库：</td>
    <td width="126"><?php echo showResult(function_exists("mssql_close"));?></td>
  </tr>
  <tr>
    <td width="188">服务器时间：</td>
    <td><?php echo date("Y年m月d日H点i分s秒");?></td>
    <td width="193">msql数据库：</td>
    <td width="126"><?php echo showResult(function_exists("msql_close"));?></td>
  </tr>
  <tr>
    <td width="188">PHP版本：</td>
    <td><?php echo PHP_VERSION;?></td>
    <td width="193">SMTP：</td>
    <td width="126"><?php echo showResult(get_magic_quotes_gpc("smtp"));?></td>
  </tr>
  <tr>
    <td width="188">WEB服务器版本：</td>
    <td><?php echo $_SERVER["SERVER_SOFTWARE"];?></td>
    <td width="193">图形处理 GD Library：</td>
    <td width="126"><?php echo showResult(function_exists("imageline"));?></td>
  </tr>
  <tr>
    <td width="188">服务器操作系统：</td>
    <td><?php echo PHP_OS;?></td>
    <td width="193">XML：</td>
    <td width="126"><?PHP echo showResult(get_magic_quotes_gpc("XML Support"));?></td>
  </tr>
  <tr>
    <td width="188">脚本超时时间：</td>
    <td><?php echo get_cfg_var("max_execution_time");?> 秒</td>
    <td width="193">FTP：</td>
    <td width="126"><?php echo showResult(get_magic_quotes_gpc("FTP support"));?></td>
  </tr>
  <tr>
    <td width="188">站点物理路径：</td>
    <td><?php echo realpath("../");?></td>
    <td width="193">脚本上传文件大小限制：</td>
    <td width="126"><?php echo get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件";?></td>
  </tr>
  <tr>
    <td width="188">显示错误信息：</td>
    <td><?php echo showResult(get_cfg_var("display_errors"));?></td>
    <td width="193">POST提交内容限制：</td>
    <td width="126"><?php echo get_cfg_var("post_max_size");?></td>
  </tr>
  <tr>
    <td width="188">使用URL打开文件：</td>
    <td><?php echo showResult(get_cfg_var("allow_url_fopen"));?></td>
    <td width="193">服务器语种：</td>
    <td width="126"><?php echo getenv("HTTP_ACCEPT_LANGUAGE");?></td>
  </tr>
  <tr>
    <td>压缩文件支持(Zlib)：</td>
    <td><?php echo showResult(function_exists("gzclose"));?></td>
    <td>脚本运行时可占最大内存：</td>
    <td><?php echo get_cfg_var("memory_limit")?get_cfg_var("memory_limit"):"无";?></td>
  </tr>
</table>
</body>
</html>
